﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace eLoan.Models
{
    public class GenerateNewScheduleModel
    {
        [Display(Name = "Document No")]
        public string DocumentNo { get; set; }

        [Display(Name = "Document Date")]
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:MM/dd/yyyy}")]
        public DateTime DocumentDate { get; set; }

        [Display(Name = "Old Payment Start Date")]
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:MM/dd/yyyy}")]
        public DateTime? OldPaymentStartDate { get; set; }

        [Display(Name = "Old Payment End Date")]
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:MM/dd/yyyy}")]
        public DateTime? OldPaymentEndDate { get; set; }

        [Display(Name = "Payment Start Date")]
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:MM/dd/yyyy}")]
        public DateTime? NewPaymentStartDate { get; set; }

        [Display(Name = "New Payment End Date")]
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:MM/dd/yyyy}")]
        public DateTime? NewPaymentEndDate { get; set; }

        [Display(Name = "Payment Frequency")]
        public int ProceedTypeID { get; set; }

        [Display(Name = "Payment Frequency")]
        public string ProceedTypeName { get; set; }

        [Display(Name = "Term")]
        public int Term { get; set; }

        [Display(Name = "Payment Second Date")]
        public int PaymentSecondDate { get; set; }

        public string GenerateScheduleStyle { get; set; }

        public string DeleteScheduleStyle { get; set; }

        public string Source { get; set; }

        public List<LoanPaymentSchedule> Schedule { get; set; }

        public bool IsAdmin { get; set; }
    }

}